<template>
  <div>
    <van-sticky>
      <van-search
        v-model="value"
        shape="round"
        background="#4fc08d"
        placeholder="请输入搜索关键词"
      />
    </van-sticky>

    <van-swipe :autoplay="3000" lazy-render class="lb">
      <van-swipe-item v-for="image in images" :key="image">
        <img :src="image" class="images" />
      </van-swipe-item>
    </van-swipe>
    <van-grid :column-num="3">
      <van-grid-item
        v-for="value in 6"
        :key="value"
        icon="photo-o"
        text="文字"
      />
    </van-grid>
  </div>
</template>

<script setup>
const images = [
  "https://fastly.jsdelivr.net/npm/@vant/assets/apple-1.jpeg",
  "https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg",
];
</script>

<style lang="scss" scoped>
.lb {
  height: 150px;
  .images {
    width: 250px;
    height: 150px;
  }
}
</style>